﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.TransLocationMachineSetModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Change Machine
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Change Machine</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>เครื่องใหม่</legend>
            
           <%-- <div class="editor-label">
                <%= Html.LabelFor(model => model.Id) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Id,new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.Id) %>
            </div>
            --%>
     <%--       <div class="editor-label">
                <%= Html.LabelFor(model => model.Event) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Event) %>
                <%= Html.ValidationMessageFor(model => model.Event) %>
            </div>--%>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_code_no) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_code_no,new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.tmp_code_no) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_LocationSetCode) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_LocationSetCode,new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.tmp_LocationSetCode) %>
            </div>

             <div class="editor-label">
                Location :
            </div>
            <div class="editor-field">
                 <%=Html.DropDownListFor(model => model.tmp_LocationSetCode, Model.tmpLocSetSelect, new { @class = "escalation-queue", name = Model.tmpLocSetSelect, disabled = "disabled" })%>
            </div>
            
<%--            <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_SerialNo) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_SerialNo) %>
                <%= Html.ValidationMessageFor(model => model.tmp_SerialNo) %>
            </div>
            --%>
              <div class="editor-label">
                Machine :
            </div>
            <div class="editor-field">
                 <%=Html.DropDownListFor(model => model.tmp_SerialNo, Model.tmpMachineSelect)%>
            </div>
        <%--    <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_start_meter_no) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_start_meter_no, String.Format("{0:F}", Model.tmp_start_meter_no)) %>
                <%= Html.ValidationMessageFor(model => model.tmp_start_meter_no) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_last_meter_no) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_last_meter_no, String.Format("{0:F}", Model.tmp_last_meter_no)) %>
                <%= Html.ValidationMessageFor(model => model.tmp_last_meter_no) %>
            </div>--%>
            
           <%-- <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_total_meter_value) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_total_meter_value, String.Format("{0:F}", Model.tmp_total_meter_value)) %>
                <%= Html.ValidationMessageFor(model => model.tmp_total_meter_value) %>
            </div>--%>
            
          <%--  <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_CreateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_CreateBy) %>
                <%= Html.ValidationMessageFor(model => model.tmp_CreateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_CreateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_CreateOn, String.Format("{0:g}", Model.tmp_CreateOn)) %>
                <%= Html.ValidationMessageFor(model => model.tmp_CreateOn) %>
            </div>--%>
          <%--  
            <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_RentBasic) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_RentBasic, String.Format("{0:F}", Model.tmp_RentBasic)) %>
                <%= Html.ValidationMessageFor(model => model.tmp_RentBasic) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_RentForUse) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_RentForUse, String.Format("{0:F}", Model.tmp_RentForUse)) %>
                <%= Html.ValidationMessageFor(model => model.tmp_RentForUse) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.tmp_ConversionRate) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.tmp_ConversionRate) %>
                <%= Html.ValidationMessageFor(model => model.tmp_ConversionRate) %>
            </div>--%>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.remarks) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.remarks) %>
                <%= Html.ValidationMessageFor(model => model.remarks) %>
            </div>
             </fieldset>
              <fieldset>
            <legend>เครื่องเดิม</legend>
           <%-- <div class="editor-label">
                <%= Html.LabelFor(model => model.ref_FSR_NO) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ref_FSR_NO,new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.ref_FSR_NO) %>
            </div>
            --%>
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ref_SerialNo) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ref_SerialNo) %>
                <%= Html.ValidationMessageFor(model => model.ref_SerialNo) %>
            </div>

               <div class="editor-label">
                Machine :
            </div>
            <div class="editor-field">
                 <%=Html.DropDownListFor(model => model.ref_SerialNo, Model.refMachineSelect,new { @class = "escalation-queue", name = Model.refMachineSelect,  disabled= "disabled"  }  )%>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ref_start_meter_no) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ref_start_meter_no,new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.ref_start_meter_no) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ref_last_meter_no) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ref_last_meter_no,new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.ref_last_meter_no) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ref_total_meter_value) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ref_total_meter_value,new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.ref_total_meter_value) %>
            </div>
            
           <%-- <div class="editor-label">
                <%= Html.LabelFor(model => model.ref_CreateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ref_CreateBy) %>
                <%= Html.ValidationMessageFor(model => model.ref_CreateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ref_CreateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ref_CreateOn, String.Format("{0:g}", Model.ref_CreateOn)) %>
                <%= Html.ValidationMessageFor(model => model.ref_CreateOn) %>
            </div>
            --%>

             </fieldset>
            <p>
                <input class="buttonSummit" type="submit" value="Save" />
            </p>
       

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

